-- GENERATED SPELL FOR [Springpaw Stalker] --


function spell0_15651(pUnit, Event) --@Claw,n/a--
pUnit:FullCastSpellOnTarget(16827,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15651', 683, 1)
end

function spell1_15651(pUnit, Event) --@Claw,n/a--
pUnit:FullCastSpellOnTarget(16828,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15651', 599, 1)
end

function spell2_15651(pUnit, Event) --@Cower,n/a--
pUnit:FullCastSpellOnTarget(1742,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15651', 0, 1)
end

function spell3_15651(pUnit, Event) --@Growl,n/a--
pUnit:FullCastSpellOnTarget(2649,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15651', 0, 1)
end

function spell4_15651(pUnit, Event) --@Growl,n/a--
pUnit:FullCastSpellOnTarget(14916,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15651', 0, 1)
end

function spell5_15651(pUnit, Event) --@Prowl,Self--
pUnit:FullCastSpellOnTarget(24450,pUnit)
pUnit:RegisterEvent('Sorts_15651', 0, 1)
end

function spell6_15651(pUnit, Event) --@Rake,n/a--
pUnit:FullCastSpellOnTarget(59881,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15651', 9000, 1)
end

function Sorts_15651(pUnit, Event)
local choix_sorts_15651 = math.random(0, 6)
if choix_sorts_15651 == 0 then
pUnit:RegisterEvent('spell0_15651', 1, 1)
end
if choix_sorts_15651 == 1 then
pUnit:RegisterEvent('spell1_15651', 1, 1)
end
if choix_sorts_15651 == 2 then
pUnit:RegisterEvent('spell2_15651', 1, 1)
end
if choix_sorts_15651 == 3 then
pUnit:RegisterEvent('spell3_15651', 1, 1)
end
if choix_sorts_15651 == 4 then
pUnit:RegisterEvent('spell4_15651', 1, 1)
end
if choix_sorts_15651 == 5 then
pUnit:RegisterEvent('spell5_15651', 1, 1)
end
if choix_sorts_15651 == 6 then
pUnit:RegisterEvent('spell6_15651', 1, 1)
end
end

function mob15651_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15651', math.random(1500, 3000), 1)
end

function mob15651_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15651_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15651_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15651, 1, 'mob15651_Action')
RegisterUnitEvent(15651, 2, 'mob15651_Leave')
RegisterUnitEvent(15651, 3, 'mob15651_Kill')
RegisterUnitEvent(15651, 4, 'mob15651_Die')
